package com.esyoga.yoyoga.pojo.DTO;

import com.esyoga.yoyoga.pojo.TOrder;

import java.math.BigDecimal;

public class GymOrdersDTO {
    private Integer oId;

    private Integer oCId;

    private String sName;

    private String tName;

    private BigDecimal oBanlance;

    private String oNum;

    private String oAlinum;

    private String  oState;

    private BigDecimal oTrainerbanlance;

    private BigDecimal oGymbanlance;

    private BigDecimal oPlatformbanlance;

    private String oCreatetime;

    private String oUpdatetime;

    public String getoUpdatetime() {
        return oUpdatetime;
    }

    public void setoUpdatetime(String oUpdatetime) {
        this.oUpdatetime = oUpdatetime;
    }

    public GymOrdersDTO(String sName, String tName, TOrder tOrder) {
        this.sName=sName;
        this.tName=tName;
        this.oId=tOrder.getoId();
        this.oCId=tOrder.getoCId();
        this.oBanlance=tOrder.getoBanlance();
        this.oNum=tOrder.getoNum();
        this.oAlinum=tOrder.getoAlinum();
        if(tOrder.getoState()==1){
            this.oState="已完成";
        }else{
            this.oState="未完成";
        }
        this.oTrainerbanlance=tOrder.getoTrainerbanlance();
        this.oGymbanlance=tOrder.getoGymbanlance();
        this.oPlatformbanlance=tOrder.getoPlatformbanlance();
        this.oCreatetime=tOrder.getoCreatetime();
        this.oUpdatetime=tOrder.getoUpdatetime();
    }

    public GymOrdersDTO() {
    }

    public Integer getoId() {
        return oId;
    }

    public void setoId(Integer oId) {
        this.oId = oId;
    }

    public Integer getoCId() {
        return oCId;
    }

    public void setoCId(Integer oCId) {
        this.oCId = oCId;
    }

    public String getsName() {
        return sName;
    }

    public void setsName(String sName) {
        this.sName = sName;
    }

    public String gettName() {
        return tName;
    }

    public void settName(String tName) {
        this.tName = tName;
    }

    public BigDecimal getoBanlance() {
        return oBanlance;
    }

    public void setoBanlance(BigDecimal oBanlance) {
        this.oBanlance = oBanlance;
    }

    public String getoNum() {
        return oNum;
    }

    public void setoNum(String oNum) {
        this.oNum = oNum;
    }

    public String getoAlinum() {
        return oAlinum;
    }

    public void setoAlinum(String oAlinum) {
        this.oAlinum = oAlinum;
    }

    public String getoState() {
        return oState;
    }

    public void setoState(String oState) {
        this.oState = oState;
    }

    public BigDecimal getoTrainerbanlance() {
        return oTrainerbanlance;
    }

    public void setoTrainerbanlance(BigDecimal oTrainerbanlance) {
        this.oTrainerbanlance = oTrainerbanlance;
    }

    public BigDecimal getoGymbanlance() {
        return oGymbanlance;
    }

    public void setoGymbanlance(BigDecimal oGymbanlance) {
        this.oGymbanlance = oGymbanlance;
    }

    public BigDecimal getoPlatformbanlance() {
        return oPlatformbanlance;
    }

    public void setoPlatformbanlance(BigDecimal oPlatformbanlance) {
        this.oPlatformbanlance = oPlatformbanlance;
    }

    public String getoCreatetime() {
        return oCreatetime;
    }

    public void setoCreatetime(String oCreatetime) {
        this.oCreatetime = oCreatetime;
    }
}
